import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import 'amfe-flexible'
import directives from './utils/directives' // v-fofo 自动聚焦
import 'highlight.js/styles/default.css' // 代码高亮的样式
// 导入vant组件
import './Vant'
Vue.use(directives)
if (process.env.NODE_ENV !== 'development') {
  console.log = function () {}
  console.error = function () {}
  console.dir = function () {}
}

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
